Skip to content

fix(tests): resolve two pre-existing main CI failures#531

Open
blove wants to merge 1 commit into
mainfrom
claude/lib-fix
Open

fix(tests): resolve two pre-existing main CI failures#531
blove wants to merge 1 commit into
mainfrom
claude/lib-fix

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 22, 2026

Summary

Two unrelated test failures had been red on main since recent merges:

  1. Library — lint / test / build failing on langgraph:testagent.provider.spec.ts used legacy tier slug 'developer-seat' (hyphen). PR fix(minting): handle one-time-payment Checkout sessions + align tier slugs (PR D) #516 renamed the LicenseTier union to underscored slugs ('developer_seat'). Token was rejected as malformed → nag fired → test failed.

  2. Website — e2e failing on "pricing page lead form validates required fields" — bare page.click('button[type="submit"]') was picking the first submit button, which after PR feat(website): Stripe Checkout for paid pricing tiers (PR B-Stripe) #508 became a Stripe checkout button (POSTs to /api/checkout/session which 500s without STRIPE_SECRET_KEY). Scoped to the LeadForm via the "Get in touch" button text.

Test plan

  • npx vitest run agent.provider locally — 4/4 passing
  • Website-e2e on this PR — green
  • Library on this PR — green

🤖 Generated with Claude Code

1. **libs/langgraph agent.provider.spec.ts** — "runs a silent license
   check when a valid license is supplied" was using the legacy tier
   slug `'developer-seat'` (hyphen), but PR #516 (May 21) renamed the
   `LicenseTier` union to underscored slugs (`'developer_seat'`). The
   token was rejected as `malformed` by `parseLicenseToken`, the warn
   nag fired, and the test failed. Update the test to use the new
   slug.

2. **apps/website e2e website.spec.ts** — "pricing page lead form
   validates required fields" clicked `button[type="submit"]` without
   scoping, which picked the first such button on the page. Stripe
   Checkout (PR #508) added a `<form action="/api/checkout/session"
   method="post">` with a submit button per buyable tier — those now
   appear before the LeadForm's "Get in touch" button. The test
   was POSTing to /api/checkout/session, which hit getStripe() with
   no STRIPE_SECRET_KEY in CI and 500'd, leaving the page in a state
   without any visible form. Scope the click + assertion to the
   LeadForm via the "Get in touch" button text.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 22, 2026 5:17pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant